module.exports = function ($scope, $modalInstance, $resource, toaster, item) {

  $scope.bean = item;
  $resource('/api/as/mc/shophelp/getAnswerInfoList', {}, {}).save({'wxuid': item.wxuid}, function(res){
    if(res.errcode === 0){
      $scope.objs = res.data;
    } else {
      toaster.error({title: '', body: '查询答题详情失败，请重试'});
    }
  });

  $scope.cancel = function(){
    $modalInstance.close();
  }

};